package com.pzh.assignment.common.bean.vo;

import com.pzh.assignment.entity.Program;
import lombok.Data;

@Data
public class ProgramVO {
    private Integer id;

    private Integer gradeId;

    private Integer majorId;

    public static ProgramVO valueOf(Program program) {
        ProgramVO vo = new ProgramVO();
        vo.setId(program.getId());
        vo.setGradeId(program.getGradeId());
        vo.setMajorId(program.getMajorId());
        return vo;
    }
}
